﻿using System;
using Petra.Gis.Geometry;
using Petra.Gis.Geometry.Utils;
using Petra.Gis.Geometry.Support;

namespace testGeometryServices
{
  class testGeomElements
  {


    public static void testMe()
    {
      Vector hor = new Vector(0.99, 0.1, 0);
      Vector ver = new Vector(-0.1, -0.99, 0);
      Vector tmp = new Vector(
        hor.I + ver.I,
        hor.J + ver.J,
        0);


      GridMath.GetVectorCcwAngle(tmp);


      hor = new Vector(-0.99, -0.1, 0);
      ver = new Vector(0.1, -0.99, 0);
      tmp = new Vector(
        hor.I + ver.I,
        hor.J + ver.J,
        0);

      GridMath.GetVectorCcwAngle(tmp);


      BoundingBox DefaultEnvelope = new BoundingBox()
      {
        Left = -1138794.16,
        Bottom = -1163534.63,
        Top = -603055.58,
        Right = -578334.19
      };


      GeometryCollection g = new GeometryCollection();

      Polygon p = new Polygon();

      g.Add(p);
    }
  }
}
